﻿__author__ = 'Liantian'
# -*- coding: utf-8 -*-
from django.contrib import admin
from .models import VpnUser
from .models import Plan
from .models import Subscription
from .models import Coupon

class VpnUserAdmin(admin.ModelAdmin):
    list_display = ['name']
    pass

admin.site.register(VpnUser,VpnUserAdmin)

class PlanAdmin(admin.ModelAdmin):
    list_display = ['title','active']
    pass

admin.site.register(Plan,PlanAdmin)


class SubscriptionAdmin(admin.ModelAdmin):
    list_display = ['plan','user']
    pass

admin.site.register(Subscription,SubscriptionAdmin)

class CouponAdmin(admin.ModelAdmin):
    list_display = ['code','billing','status']

admin.site.register(Coupon,CouponAdmin)